﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace MoneyLover.Pages
{
    public partial class Giaodich : PhoneApplicationPage
    {
        public Giaodich()
        {
            InitializeComponent();
        }

        private void btnchi_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Pages/Chi.xaml?id=2", UriKind.RelativeOrAbsolute));
        }

        private void btnthu_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Pages/Thu.xaml?id=1", UriKind.RelativeOrAbsolute));// 
        }

        private void btnvay_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Pages/Vay.xaml?id=3", UriKind.RelativeOrAbsolute));
        }

        private void btnno_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Pages/No.xaml?id=4", UriKind.RelativeOrAbsolute));
        }

        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            if (Contanst._tkdangnhap != null)
            {
                ApplicationTitle.Text = Contanst._tkdangnhap.USERNAME.ToString();
            }
        }
    }
}